package io.finer.erp.jeecg.bas.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

import io.finer.erp.jeecg.bas.entity.BasMaterial;
import io.finer.erp.jeecg.bas.entity.BasMaterialTemp;

/**
 * @Description: pda根据分类生成的临时物料
 * @Author: jeecg-boot
 * @Date:   2020-10-17
 * @Version: V1.0
 */
public interface IBasMaterialTempService extends IService<BasMaterialTemp> {
	BasMaterialTemp getByCode(String code);
	
	/**
	 * @Description 将临时表中的物料插入到正式的物料表中
	 * @param code 物料编码
	 * @return
	 * Create at: 2020-10-22 14:36:59
	 * @author: duany
	 * Revision:
	 *    2020-10-22 14:36:59 - first revision by duany
	 *        
	 */
	BasMaterial tempToMaterial(String code);

	/**
	 * @Description 根据临时表中的物料信息返回一个BasMaterial对象
	 * @param code 物料编码
	 * @return
	 * Create at: 2020-10-22 14:36:15
	 * @author: duany
	 * Revision:
	 *    2020-10-22 14:36:15 - first revision by duany
	 *        
	 */
	BasMaterial getTemMaterial(String code);

	/**
	 * @Description 
	 * @param codes
	 * Create at: 2021-04-24 09:19:11
	 * @author: duany
	 * Revision:
	 *    2021-04-24 09:19:11 - first revision by duany
	 *        
	 */
	List<BasMaterialTemp> getByCodes(List<String> codes);
}
